package controller;

import model.vo.RegistryVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.RegistryService;
import util.Result;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/registry")
public class RegistryController {
    @Resource
    private RegistryService service;
    @RequestMapping("/findAll.do")
    public Object findAll(){
        List<RegistryVO> list = service.findAll();
        return new Result<>("200","操作成功",list);
    }
}
